import unittest
import time
from tool.HTMLTestReport import HTMLTestReport
from scripts.test_login import TestLogin


suite = unittest.TestSuite()
suite.addTest(unittest.makeSuite(TestLogin))

report = "../report/{}.html".format(time.strftime("%Y_%m_%d %H_%M_%S"))

with open(report, "wb") as f:
    runner = HTMLTestReport(stream=f, title="TPShop功能自动化测试", description="登录自动化测试", tester="Cedar")
    runner.run(suite)
